package com.cinc.ebc.fi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.fi.entity.FiPaymentVoucherDetail;
import com.cinc.ebc.fi.model.FiPaymentVoucherDetailModel;
import com.cinc.ebc.fi.model.FiSupplyPaymentDetailModel;
import com.cinc.ebc.fi.model.FiSupplyPrePaymentDetailModel;
import com.cinc.ebc.fi.vo.FiPaymentVoucherDetailPage;
import com.cinc.ebc.fi.vo.FiSupplyPaymentDetailPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description: 付款明细
 * @Author: jeecg-boot
 * @Date:   2022-12-17
 * @Version: V1.0
 */
public interface FiPaymentVoucherDetailMapper extends BaseMapper<FiPaymentVoucherDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);

	public List<FiPaymentVoucherDetail> selectByMainId(@Param("mainId") String mainId);

    List<FiPaymentVoucherDetailModel> selectDetailList(Page<FiPaymentVoucherDetailModel> page,
													   @Param("param") FiPaymentVoucherDetailPage param,
													   @Param("permissionSql") String permissionSql);

	List<FiSupplyPaymentDetailModel> selectSupplyPaymentList(Page<FiSupplyPaymentDetailModel> page,
															 @Param("param") FiSupplyPaymentDetailPage param,
															 @Param("permissionSql") String permissionSql);

	List<FiSupplyPrePaymentDetailModel> selectSupplyPrePaymentList(Page<FiSupplyPrePaymentDetailModel> page,
																   @Param("param") FiSupplyPaymentDetailPage param,
																   @Param("permissionSql") String permissionSql);
}
